import request from '@/utils/request';

// 查询第三方认证列表
export const listOauth = (query: any) => {
    return request({
        url: '/system/oauth/list',
        method: 'get',
        params: query
    });
}

// 查询第三方认证详细
export const getOauth = (id: any) => {
    return request({
        url: `/system/oauth/${id}`,
        method: 'get'
    });
}

// 新增第三方认证
export const addOauth = (data: any) => {
    return request({
        url: '/system/oauth',
        method: 'post',
        data: data
    });
}

// 修改第三方认证
export const updateOauth = (data: any) => {
    return request({
        url: '/system/oauth',
        method: 'put',
        data: data
    });
}

// 删除第三方认证
export const delOauth = (id: any) => {
    return request({
        url: `/system/oauth/${id}`,
        method: 'delete'
    });
}
